package lucky.xiong.basic.内部类;

import lombok.Builder;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class A {
    private String CODE;
    private DATA DATA;
    private Boolean aboolean =false;
    private B b;
    public A() {
        this.DATA = new DATA();
    }

    @Data
    class DATA {

        private  DATAINFOS DATAINFOS;
        /**
         * 批次 UUID，需要与发送报文中的批次 UUID 保持一致
         */
        private String UUID;
        public DATA() {
            this.DATAINFOS = new DATAINFOS();
        }
    }

    @Data
    class DATAINFOS {
        //    @SerializedName("DATAINFO")
        private List<DATAINFO> DATAINFOS;
        public DATAINFOS (){
            this.DATAINFOS = new ArrayList<>();
        }



    }

    @Data
    @Builder
    public static class DATAINFO {
        /**
         * 数据唯一标识代码，需要与发送报文中保持一致
         */
        private Long code;
        /**
         * 数据处理结果描述
         */

    }



}
